package cn.getech.data.development.model.dto.real;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;

/**
 * @Author luoxi
 * @create 2021/1/18 10:51
 */
@Data
public class RealTableQueryReturnDTO implements Serializable {
    private static final long serialVersionUID = -2745843758949293131L;

    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

    @ApiModelProperty(value = "当前页", name = "current")
    private Long current;

    @ApiModelProperty(value = "每页大小", name = "size")
    private Long size;

    @ApiModelProperty(value = "表名", name = "tableName")
    private String tableName;

    @ApiModelProperty(value = "所属项目", name = "projectName")
    private String projectName;

    @ApiModelProperty(value = "所属库", name = "dbName")
    private String dbName;

    @ApiModelProperty(value = "描述", name = "desc")
    private String desc;

    @ApiModelProperty(value = "创建人", name = "createName")
    private String createName;

    @ApiModelProperty(value = "创建时间", name = "createTime")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "所属项目", name = "proName")
    private ArrayList<String> proName;

    @ApiModelProperty(value = "创建人", name = "createPer")
    private String createPer;

}
